package abaco.symbol.operation;

import abaco.Symbol;
import abaco.gui.Panel;
import abaco.symbol.Operation;

public class Exponential extends Operation {
	public static final String BASE = "operation-exponential-base";
	public static final String EXPONENT = "operation-exponential-exponent";

	@Override
	public Symbol buildPanel(Panel panel) {
		return this;
	}

	@Override
	public String toLatex() {
		StringBuilder latex = new StringBuilder();
		latex.append("{");
		latex.append(toLatex(BASE));
		latex.append("^");
		latex.append(toLatex(EXPONENT));
		latex.append("}");
		return latex.toString();
	}
}
